package com.zrf.hibernate.model;

public class MyProduct {

	private Integer pid = 0;
	private String pname = null;
	private String pprice = null;
	private Integer num = 0;
	private Integer allnum = 0;
	private String sname = null;
	private String spwd = null;
	public MyProduct() {
		super();
	}
	public MyProduct(String pname, String pprice, Integer num, Integer allnum,
			String sname, String spwd) {
		super();
		this.pname = pname;
		this.pprice = pprice;
		this.num = num;
		this.allnum = allnum;
		this.sname = sname;
		this.spwd = spwd;
	}
	public MyProduct(Integer pid, String pname, String pprice, Integer num,
			Integer allnum, String sname, String spwd) {
		super();
		this.pid = pid;
		this.pname = pname;
		this.pprice = pprice;
		this.num = num;
		this.allnum = allnum;
		this.sname = sname;
		this.spwd = spwd;
	}
	public Integer getPid() {
		return pid;
	}
	public void setPid(Integer pid) {
		this.pid = pid;
	}
	public String getPname() {
		return pname;
	}
	public void setPname(String pname) {
		this.pname = pname;
	}
	public String getPprice() {
		return pprice;
	}
	public void setPprice(String pprice) {
		this.pprice = pprice;
	}
	public Integer getNum() {
		return num;
	}
	public void setNum(Integer num) {
		this.num = num;
	}
	public Integer getAllnum() {
		return allnum;
	}
	public void setAllnum(Integer allnum) {
		this.allnum = allnum;
	}
	public String getSname() {
		return sname;
	}
	public void setSname(String sname) {
		this.sname = sname;
	}
	public String getSpwd() {
		return spwd;
	}
	public void setSpwd(String spwd) {
		this.spwd = spwd;
	}
	
	
}
